package com.cxxx.guns.modular.backend.service;

import com.cxxx.guns.modular.backend.model.News;
import com.baomidou.mybatisplus.service.IService;

import java.util.Date;
import java.util.List;

/**
 * <p>
 * 新闻表
 服务类
 * </p>
 *
 * @author cczhang
 * @since 2018-09-04
 */
public interface INewsService extends IService<News> {

    Object addNews(News news);

    List<News> getList(String title, Integer model);
    //yyi
    List<News> getListIndex(int model);
    /*前一条*/
    News selectNewsPrevious(int status,Date date);
    /*后一条*/
    News selectNewsNext(int status,Date date);
}
